package com.maosy.demo

import com.maosy.demo.api.CmsApi
import com.maosy.demo.api.HttpRequest
import com.maosy.demo.api.ServerHost
import org.junit.Assert.assertEquals
import org.junit.Test

/**
 * Example local unit test, which will execute on the development machine (host).
 *
 * See [testing documentation](http://d.android.com/tools/testing).
 */
class ExampleUnitTest {
    @Test
    fun addition_isCorrect() {
        assertEquals(4, 2 + 2)
    }

    @Test
    fun requestTest() {
        HttpRequest.init()
        val api = HttpRequest.getApi<CmsApi>(ServerHost.BASE_HOST)
//        val banners = api.banner()
//        Log.i(this::class.java.simpleName, gson.toJson(banners))
    }
}